<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title><?=getValInArr(getSess(SESS_DIC),array('webInfo','webtitle'))?></title>
	<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
	<script src="<?php echo base_url().'public/home/js/' ?>jquery.js"></script>
	<!-- <script src="<?php echo base_url().'public/home/js/' ?>jquery.js"></script> -->

	<!-- <script src="<?php echo base_url(); ?>public/home/bootstrapvalidator-master/vendor/jquery/jquery.min.js"></script> -->
	<link rel="stylesheet" href="<?php echo base_url().'public/home/bootstrap/css/' ?>bootstrap1.min.css">
	<link rel="stylesheet" href="<?php echo base_url().'public/h_ui/lib/Hui-iconfont/1.0.8/' ?>iconfont.css">
	<link rel="stylesheet" href="<?php echo base_url().'public/home/css/' ?>mui.min.css">
	<link rel="stylesheet" href="<?php echo base_url().'public/home/css/' ?>class_assess.css">
	<script type="text/javascript" src="<?php echo base_url().'public/home/js/' ?>class_assess.js"></script>
	<script type="text/javascript" src="<?php echo base_url().'public/home/js/' ?>function.js"></script>
	<?php 
	include_once "public/home/html/alert.php";
	include_once "public/home/html/search-select.php";
	include_once 'public/home/html/mobile_select.php';
	?> 
	<!-- <script src="https://cdn.staticfile.org/popper.js/1.12.5/umd/popper.min.js"></script> -->
	<script src="<?php echo base_url().'public/js/'?>popper.min.js"></script>
	<script src="<?php echo base_url().'public/home/bootstrap/js/'?>bootstrap1.min.js"></script>
	<link href="<?php echo base_url().'public/home/bootstrap-select/docs/docs/dist/css/'?>bootstrap-select.min.css" rel="stylesheet" />
	<script src="<?php echo base_url().'public/home/bootstrap-select/docs/docs/dist/js/'?>bootstrap-select.min.js"></script>
	<script src="<?php echo base_url().'public/home/bootstrap-select/docs/docs/dist/js/i18n/'?>defaults-zh_CN.min.js"></script>
	<!--  <script src="<?php echo base_url().'cust/js/'?>attendAdd.js"></script>  -->

	<script src="<?php echo base_url().'cust/js/'?>goodsUpload.js"></script>
	
	<!-- 分页插件 -->
	<?php include_once "public/home/html/step.php"  ?>
	<!-- 图片上传 -->
	<?php include_once "public/home/html/imgupload.php"  ?>
	<!-- 日期选择控件 -->
	<script src='<?php echo base_url().'public/home/mobile_date/' ?>jdate.min.js'></script>
	
	
	<title>听课评价</title>	
</head>
<style>
	.question-bottom{
		margin-bottom:20px
	}
		.data-box{
		    	width:90px;
		    	height:90px;
		    	border-radius: 4px;
		    	float:left;
		    	margin:10px;
		    	padding:10px;
		    	cursor: pointer;
		    	position: relative;
		    }
		    .tab-item1 .data-box:nth-child(1){
		    	width:100px!important;
		    }
		    .data-box:hover {
		        background-color: #ccc;
		    }
		    .data-box:hover>.banner-prev,.data-box:hover>.banner-next,.data-box:hover>.del-icon {
		        display: block;
		        -webkit-animation: spopIn 0.2s ease-in-out;
		        animation: spopIn 0.2s ease-in-out;
		    }
		    .add-img{
		    	height:80px;
		    	width:80px;
		    	border-radius:4px;
		    }
		    .document-img{
		    	height:80px;
		    	width:80px;
		    	border-radius:4px;
		    }
		    .data-box-banner .del-icon{
		    	width:  22px;
            	height:  22px;
            	background-color: #f1514b; 
            	border: 0.5px solid #f1514b;
	            border-radius: 50%;
	            text-align: center;
				position: absolute;
				line-height: 22px;
				font-size: 16px;
				color:white;
				right:0px;
				top:0px;
				cursor: pointer;
		    }
		    .banner-prev,.banner-next{
		    	height:20px;
		    	width:20px;
		    	background-color: #999;
		    	text-align: center;
		    	line-height: 20px;
		    	color:white;
		    	position: absolute;
		   		font-size: 12px;
		   		top:40px;
		   		border-radius:2px;
		   		display: none;
		    }
		    .banner-prev{
		    	left:0px;
		    }
		    .banner-next{
		    	right:0px;
		    }

			.document-p{
				height:50px;
				width:100%;
				background-color: white;
				position: fixed;
				top:0px;
				padding:0px 20px;
				padding-top:6px!important;
				text-align: center;
				display: none;
				border-bottom:1px solid #CCCCCC;
			}
</style>
<body>
   
	<input type="file" id="document-file" style="display: none;" multiple="multiple" >

	 <!-- 各种资料demo -->
    <div class="data-box-demo" style="display:none;">
    	<div class="data-box data-box-banner">
    		<i class="icon-remove  del-icon" onclick="delicon(this)">X</i>
    		<a href="" download=""><img src="" alt="" class="document-img"></a>
    		<input type="hidden" class="path">
    		<input type="hidden" class="icon">
    	</div>
    </div>

	<input type="hidden" class="url" name="url" value="<?php echo base_url(); ?>">
	
	<!-- <div class="header div_margin" >听课评价</div> -->
	<div class="search-head header mui-bar mui-bar-nav row" style="background-color: #f7f9fa; border:none;">
		<div class="col-xs-1" style="margin-top: 3%">
			<a class=" Hui-iconfont Hui-iconfont-slider-left" href="javascript:void(0)" onclick="location.href=getRootPath()+'/Home/Index/Index'" style="color: #C9C9C9"></a>
		</div>
		<div class="col-xs-11">
			<h1 class="mui-title" style="color:#333;">听课评价</h1>
		</div>
	</div>

	<div id="steps" style="margin-top: 70px"></div>

	<script>

		$(function () {
			initStep();		
			<?php if(isset($next)): ?>
				$("#steps").step("goto", <?=$next ?>);
				for (var i = 1; i < <?=$next?>; i++) {
					$("#step"+i).hide();
				}
				$("#step"+<?=$next?>).show();
			<?php endif ?>	
		});

		function initStep() {
			$("#steps").step({
				stepNames: ['听课内容 ','课程简要', '教学能力', '学生常态', '其他', '完成'],
				initStep: 1
			});
		}

		// function gotoStep(step) {
		// 	$("#steps").step("goto", step);
		// 	for(var i=1;i<=6;i++){
		// 		$("#step"+i).hide();
		// 	}
		// 	$("#step"+step).show();
		// }

	</script>
	<!-- demo -->
	<div class="select_box class_type_demo"></div>
	<div class="select_box title_demo"></div>
	<div class="select_box age_groups_demo"></div>
	<div class="select_box teachers_attribute_demo"></div>
	<div class="select_box score_demo"></div>	
	<div class="select_box role_demo"></div>
	<input type="hidden" name="listen_name" value="<?php $_SESSION[SESS_USER_HOME]['username']?>">
	<input type="hidden"  id="role_index" value="<?php if(isset($role_index)) echo $role_index?>">
	<form   id='editForm'>
		<input type="hidden" value="<?php if(isset($_SESSION[SESS_ASSESS]['teacher_id'])) echo $_SESSION[SESS_ASSESS]['teacher_id'];?>" id="teacher_id" >
		<div id="step1" class="form-group" >
		
		<div class="clear"></div>
		<form id="step1_form">
			<div class="addlist">
				<!-- <?php 

				if($is_add!=0){
					foreach ($attend_record as $k => $v) {
						// if(isset($attend_record)){
							echo "<div class='content'>
							<div class='div_border row'>
							<div class='col-xs-2 tag_name ' >时间</div>
							<div class='col-xs-9 tag_val '  >
							<input type='text' readOnly class='form-control time_HMS write' id='recordid1' name='attend_record[0]' value='".$attend_record[$k]['time']."'' >
							</div>
							</div>
							<div class='div_border' style='height: auto!important;'>
							<div class='div_border row'>
							<div class='col-xs-3 tag_name  ' >教学活动</div>
							<div class='col-xs-9 tag_val '>
							<input type='text' placeholder='请输入教学活动' class='form-control write' id='recordid2' name='attend_record[1]' value='".$attend_record[$k]['activity']."'>
							</div>
							</div>
							<div class='div_border row'>
							<div class='col-xs-3 tag_name  ' >随堂评注</div>
							<div class='col-xs-9 tag_val '>
							<input type='text' placeholder='请输入随堂评注' class='form-control write' id='recordid3' name='attend_record[2]' value='".$attend_record[$k]['commentary']."'>
							</div>
							</div>
							</div>
							</div>";
						// }
					}
				}else{
					echo "";
				}
				?> -->
				<!-- <input type="hidden" name="attend_record" id="attend_record" > -->
				<form>
					<div class='content'>
						<div class='div_border row'>
							<div class='col-xs-2 tag_name ' >时间</div>
							<div class='col-xs-9 tag_val '  >
								<input type='text' readOnly  class='form-control time_HMS write' id='recordid1'  name='attend_record_time' value="<?php if(isset($attend_record) && $attend_record!=null){echo $attend_record[0]['time'];} ?>">
							</div>
						</div>


					</div>
				</div>
				<div class="tag_name  " style="margin-top: 0px !important;padding-top: 2%">听课记录(可添加附件)</div>
				<div class="tag_val  " style="padding-right: 5%;padding-left: 3%;margin-top: 10px;margin-left: 10px;position: relative;width:100%" >
					<!-- <textarea type="text" rows="4" placeholder="请输入听课记录" class="form-control" id="recordid3" name="attend_record_content">	
					</textarea> -->
					<textarea type="text" rows="4" placeholder="请输入听课记录" class="form-control" id="recordid3" name="attend_record_content"><?php if(isset($_SESSION[SESS_ASSESS]['record'])){echo $_SESSION[SESS_ASSESS]['record'];}else if($attend_record!=null){echo $attend_record[0]['commentary'];}?></textarea>
				</div>
				
				<div class="tag_name  " style="margin-top: 0px !important;padding-top: 2%">意见或建议</div>
				<div class="tag_val  " style="padding-right: 5%;padding-left: 3%;margin-top: 10px;margin-left: 10px;position: relative;width:100%" >
					<textarea type="text" rows="4" placeholder="请输入意见或建议" class="form-control" id="attend5" name="attend5"><?php if(isset($_SESSION[SESS_ASSESS]['advice'])){echo $_SESSION[SESS_ASSESS]['advice'];}else if(isset($attend)){echo $attend['advice'];} ?></textarea>
				</div>
			</form>
			<input type="hidden" name="recordcount" id="recordcount" value="1">
			<div id="img_upload" style="margin-top: 5%;margin-left: 5%">
				<ul class="upload-ul clearfix">
						<li class="td_<?php echo UploadType::AttendImg[XPHEnum::Value] ?>" style="width:100%;height: auto;">
							<div class="data-box">
							    <img class="add-img" data-type="<?php echo UploadType::AttendImg[XPHEnum::Value] ?>" src="<?php echo base_url() ?>public/home/images/add-structure.png" alt=""  onclick="uploadDocument(this)">
							</div>
							<?php if(isset($_SESSION[SESS_ASSESS]['img'])): ?>
								<?php foreach ($_SESSION[SESS_ASSESS]['img'] as $k => $v): ?>
								<div class="data-box data-box-banner">
									<i class="icon-remove  del-icon">X</i>
									<a href="<?php echo $v ?>" download=""><img src="<?php echo base_url() ?><?php echo $v ?>" data_src="<?php echo $v ?>" alt="" class="document-img"></a>
								</div>	
								<?php endforeach ?>
							<?php elseif(isset($attend_img)): ?>
								<?php foreach ($attend_img as $k => $v): ?>
								<div class="data-box data-box-banner">
									<i class="icon-remove  del-icon">X</i>
									<a href="<?php echo $v['img'] ?>" download=""><img src="<?php echo base_url() ?><?php echo $v['img'] ?>" data_src="<?php echo $v['img'] ?>" alt="" class="document-img"></a>
								</div>	
								<?php endforeach ?>
							<?php endif; ?>						
						</li>
						
					</ul>

					<form>
						<div id='img'></div>
					</form>
				</div>

			<!-- 文件上传进度条 -->
			<div class="document-p">
				<div class="clearfix">
					<div class="col-xs-12 p-text" style="font-size: 12px; font-weight:bold; margin-bottom: 5px;">已上传（0%）</div>
				</div>

				<div class="progress progress-mini progress-striped active">
					<div style="width:0%" class="progress-bar progress-bar-success"></div>
				</div>
			</div>

			</form>	
			<div style="margin-top: 5%">
				<input type="button" id="goto_step2" class="btn btn-primary step_default"  value="下一步"></input>	
			</div>
		</div>
		<div id="step2" style="display: none;">	
			<form>
			<input type="hidden" id="is_add" name='is_add' value="<?php echo $is_add?>">
			<!-- <input type="hidden" value="<?php if(isset($class_detail)) estr($class_detail,'class_name')?>" id="classname"> -->
			<!-- <input type="hidden" id="class_id" name="class_id"value="<?php if(isset($class_id)){echo $form;}else{echo '0';}?>"> -->
			<!-- <input type="hidden" name='sub_role' value="<?php $role=$_SESSION[SESS_USER_HOME]['sub_role_id'].','.$_SESSION[SESS_USER_HOME]['role_id'];$role=explode(',',$role);foreach($role as $k=>$v){if($v==WebRole::SchoolSupervisor[XPHEnum::Value]){echo $v;break;}else if($v==WebRole::UnitSupervisor[XPHEnum::Value]){echo $v;break;}}?>"> -->
	<!-- <?php 
		$role=$_SESSION[SESS_USER_HOME]['sub_role_id'].','.$_SESSION[SESS_USER_HOME]['role_id'];
		$role=explode(',',$role);
		foreach ($role as $k => $v) {
			if($v==WebRole::SchoolSupervisor[XPHEnum::Value] || WebRole::UnitSupervisor[XPHEnum::Value]){
				echo $v;
			}
		}
		?> -->
			<!-- <div class='div_border row'>
				<div class="col-xs-3 tag_name  " >编号</div>
				<div class="col-xs-9 tag_val ">
					<input type="text" placeholder="请输入编号" class="form-control" id="attend1" name="attend1" value='<?php if(isset($attend))echo $attend['academic_year'];?>'>
				</div>
			</div> -->	
			<div class='div_border row'>
				<div class="col-xs-3 tag_name  " >学年<span class="required">*</span></div>
				<div class="col-xs-9 tag_val ">
					<input type="text" placeholder="请输入学年" class="form-control" id="attend2" name="attend2" readOnly value='<?php if(isset($attend))echo $attend['academic_year']; if(isset($class_detail['academic_year'])){echo $class_detail['academic_year'];}?>'>
				</div>
			</div>
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >学期<span class="required">*</span></div>
				<div class="col-xs-9 tag_val  " >
					<input type="text" placeholder="请输入学期" class="form-control" id="attend3" name="attend3" readOnly value='<?php if(isset($attend))echo $attend['semester']; if(isset($class_detail['semester'])){echo $class_detail['semester'];}?>'>
				</div>
			</div>	
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >授课教师<span class="required">*</span></div>
				<div class="col-xs-9 tag_val  " >
					<input type="text" placeholder="请输入授课教师" id="teacher_name" onclick="gotoSearch()" name="teacher_name" value="<?php if(isset($_SESSION[SESS_ASSESS]['teacher_name'])){echo $_SESSION[SESS_ASSESS]['teacher_name'];}else if(isset($attend)){echo $attend['teacher_name'];} ?>">
					<input type="hidden"  id="teacher_code"  class="hide" name="teacher_code" value="<?php if(isset($_SESSION[SESS_ASSESS]['teacher_code'])){echo $_SESSION[SESS_ASSESS]['teacher_code']?$_SESSION[SESS_ASSESS]['teacher_code'] : '暂无工号';}else if(isset($attend)){echo $attend['teacher_code'];}?>">
				</div>
			</div>
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >教师所属单位<span class="required">*</span></div>
				<div class="col-xs-9 tag_val  " >
					<input type="text"  readOnly id="dept_name" name="dept_name" value="<?php if(isset($_SESSION[SESS_ASSESS]['dept_name'])){echo $_SESSION[SESS_ASSESS]['dept_name'];}else if(isset($attend)){echo $attend['dept_name'];} ?>">
				</div>
			</div>	
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >教师职称<span class="required">*</span></div>
				<div class="col-xs-9 tag_val  "  onclick='teacher_title.openSelectSwiper();'>
					<input type="text" name="title" readOnly id="teacher_title" value="<?php if(isset($_SESSION[SESS_ASSESS]['title'])){echo (new Title)->show($_SESSION[SESS_ASSESS]['title']);}else if(isset($attend['title'])){echo $attend['title'];} ?>" placeholder="请选择">
					<!-- <?php if(isset($class_detail['type'])){echo estr($class_detail,'title');} if(isset($attend['title'])){echo $attend['title'];} ?> -->
				</div>
			</div>
<!-- 
			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >教师年龄层次<span class="required">*</span></div>
				<div class="col-xs-9 tag_val  "  onclick='age_groups.openSelectSwiper();'>
					<input type="text" name="age_groups" id='age_groups' readOnly value="<?php if(isset($_SESSION[SESS_ASSESS]['age_groups'])){ echo (new AgeGroups)->show(estr($_SESSION[SESS_ASSESS],'age_groups'));}else if(isset($attend['age_groups'])){echo $attend['age_groups'];} ?>" placeholder="请选择">			
					
					</div>
				</div> -->

			<div  class='div_border row'>
				<div class="col-xs-3 tag_name  " >教师年龄<span class="required">*</span></div>
				<div class="col-xs-9 tag_val  " >
					<input type="text" name="age_groups" id='age_groups' readOnly value="<?php if(isset($_SESSION[SESS_ASSESS]['age'])){ echo $_SESSION[SESS_ASSESS]['age'];}else if(isset($attend['age_groups'])){echo $attend['age_groups'];} ?>" placeholder="请输入">			
					
					</div>
				</div>
				<div  class='div_border row'>
					<div class="col-xs-3 tag_name  " >教师属性<span class="required">*</span></div>
					<div class="col-xs-9 tag_val  "  onclick='teachers_attribute.openSelectSwiper();' >
						<input type="text"  readOnly id='teachers_attribute'name="teachers_attribute" value="<?php if(isset($_SESSION[SESS_ASSESS]['teachers_attribute'])){echo (new TeachersAttribute)->show(estr($_SESSION[SESS_ASSESS],'teachers_attribute'));}else if(isset($attend['teachers_attribute'])){echo $attend['teachers_attribute'];} ?>" placeholder="请选择">
					</div>
				</div>								
				<div  class='div_border row'>
					<div class="col-xs-3 tag_name  " >课程名称<span class="required">*</span></div>
					<div class="col-xs-9 tag_val  " >
						<input type="text" placeholder="请输入课程名称" id="class_name" name="class_name"   value="<?php if(isset($_SESSION[SESS_ASSESS]['class_name'])){echo $_SESSION[SESS_ASSESS]['class_name'];}else if(isset($attend)){echo $attend['class_name'];}else ?>" onclick="gotoSearch1()"  oninput="checkClass()" readOnly unselectable="on" onfocus="this.blur()">
					</div>
				</div>
				<div  class='div_border row'>
					<div class="col-xs-3 tag_name  " >课程类型<span class="required">*</span></div>
					<div class="col-xs-9 tag_val"   onclick='class_type.openSelectSwiper();' >
						<input type="text" readOnly name="class_type" id="class_type"  value="<?php if(isset($_SESSION[SESS_ASSESS]['classtype'])){echo $_SESSION[SESS_ASSESS]['classtype'];}else if(isset($attend['class_type'])){echo $attend['class_type'];} ?>"  placeholder="请选择">
					</div>
				</div>
				<div  class='div_border row'>
					<div class="col-xs-3 tag_name  " >听课班级<span class="required">*</span></div>
					<div class="col-xs-9 tag_val  " >
						<input type="text" placeholder="请输入听课班级" class="form-control" id="attend4" name="attend4"  value="<?php if(isset($_SESSION[SESS_ASSESS]['classname'])){echo $_SESSION[SESS_ASSESS]['classname'];}else if(isset($attend)){echo $attend['listen_class'];}?>" oninput="checkClass()">
					</div>
				</div>

				<div  class='div_border row'>
					<div class="col-xs-3 tag_name  " >听课地址<span class="required">*</span></div>
					<div class="col-xs-9 tag_val  " >
						<input type="text"   placeholder="请输入听课地址" id="listen_address" name="listen_address" value="<?php if(isset($_SESSION[SESS_ASSESS]['classroom'])){echo $_SESSION[SESS_ASSESS]['classroom'];}else if(isset($attend)){echo $attend['listen_address'];}?>">
					</div>
				</div>
				<div  class='div_border row'>
					<div class="col-xs-3 tag_name  " >开课单位<span class="required">*</span></div>
					<div class="col-xs-9 tag_val  "  readOnly onclick='course_units.openSelectSwiper();'>
						<input type="text"  placeholder="请输入开课单位" id="course_units" name="course_units" value="<?php if(isset($_SESSION[SESS_ASSESS]['course_units'])){echo $_SESSION[SESS_ASSESS]['course_units'];}else if(isset($attend)){echo $attend['course_units'];}?>">
					</div>
				</div>
				<div  class='div_border row'>
					<div class="col-xs-3 tag_name  " >听课时间<span class="required">*</span></div>
					<div class="col-xs-9 tag_val  " >
						<input type="text"  readOnly placeholder="请选择听课时间" id="listen_time" name="listen_time" value="<?php if(isset($attend['listen_time'])&&$attend['listen_time']!=null){echo date('Y-m-d H:i',$attend['listen_time']);}if(isset($class_detail['listen_time'])){echo date('Y-m-d H:i',$class_detail['listen_time']);}?>">
					</div>
				</div>
				<div  class='div_border row'>
					<div class="col-xs-3 tag_name  " >听课身份<span class="required">*</span></div>
					<div class="col-xs-9 tag_val  " onclick='role.openSelectSwiper()'>
						<input type="text" id='role' name="role" readOnly value="<?php if(isset($attend['type'])){echo (new AttendType)->show($attend['type']);} ?>" placeholder="请选择">
					</div>
				</div>
				<div  class='div_border row'>
					<div class="col-xs-3 tag_name  " >听课类型<span class="required">*</span></div>
					<div class="col-xs-9 tag_val  " onclick='listen_type.openSelectSwiper()'>
						<input type="text" id='listen_type' name="listen_type" readOnly value="<?php if(isset($attend['listen_type'])){echo $attend['listen_type'];} ?>" placeholder="请选择">
					</div>
				</div>
			<input type="hidden"name="class_id"value="<?php if(isset($class_id)){echo $class_id;}else{echo '0';}?>">
			<input type="hidden"  name="teacher_id" value="<?php if(isset($teacher_id)){ echo $teacher_code;}else{echo '0';}?>">
			</form>
			
			<div>					
				<input type="button" id="back_step1" class="btn btn-primary step_default"  value="上一步"></input>
				<input type="button" id="goto_step3" class="btn btn-primary step_default"  value="下一步"></input>		
			</div>
		</div>



		<div id="step3"  style='display: none;'>
			<form class="role" >
			<!-- <?php 
			if(isset($attend_teaching_content)){
				foreach ($attend_teaching_content as $k => $v) {
				$score=array();					
					for($i=1;$i<=$attend_teaching_content[$k]['score'];$i++){
						$score[$i-1]=$i;
					}
					// $question=(new TeachingContent)->show($k+1);
					$question=$v['content'];
					$id=$k+1;
					echo "<div class='margin-bottom' ><div >".$id.".".$question.'【'.$v['score'].'分】'."<input type='hidden' name='attend_teaching_content[".$k."]'  value='".$question."'></div><input type='text' placeholder='请选择分数' id='teachingLevel[".$id."] name='teachingLevel[".$id."] onClick='score(this)' ></div>";
					$select="";
					// foreach ($score as $k2 => $v2) {						
					// 	echo "<option value='".$v2."' class='form-control'>".$v2."</option>";
					// }
					// if($is_add==0){
					// 	echo "</select><input type='hidden' value=".end($score)." name='attend_teaching_score[".$k."]'></div><script>$('#teachingLevel".$id."').selectpicker('val', '0');</script>";
					// }else{
					// 	echo "</select><input type='hidden' value=".end($score)." name='attend_teaching_score[".$k."]'></div><script>$('#teachingLevel".$id."').selectpicker('val', '".$v['get_score']."');</script>";
					// }					
				}
			}
			?> -->
			<?php 
			if(isset($attend_teaching_content)){
				foreach ($attend_teaching_content as $k => $v) {
					for($i=1;$i<=$attend_teaching_content[$k]['score'];$i++){
						$score[$i-1]=$i;
					}
					$question=$v['content'];
					$id=$v['key_index'];
					// $id=$k+1;
					echo "<div class='margin-bottom' ><div >".$id.".".$question.'【'.$v['score'].'分】'."<div class='question-bottom'></div><input type='hidden' name='attend_teaching_content[".$k."]'  value='".$question."'></div><input placeholder='  请打分' id='teachingLevel".$id."' name='teachingLevel[".$k."]'  type='text' readonly class='input' value='".$v['get_score']."'>";
					$select="";
					
					if($is_add==0){
						echo "<input type='hidden' value=".end($score)." name='attend_teaching_score[".$k."]'><input type='hidden' value=".$id." name='attend_teaching_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_list_id[".$k."]'></div>";
					}else{
						echo "<input type='hidden' value=".end($score)." name='attend_teaching_score[".$k."]'><input type='hidden' value=".$id." name='attend_teaching_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_list_id[".$k."]'></div>";
					}
					$num=count($score);
					$key=$num-1;
					echo "<script>
					var num=".$num.";
					var optionlist=new Array();
					for(var i=1;i<=num;i++){
						optionlist.push(i);
					}
					new MobileSelect({
						trigger: '#teachingLevel".$id."',
						title: '请选择分数',
						wheels: [
						{data:optionlist}
						],
						position:[".$key."],//初始化定位 打开时默认选中的哪个 如果不填默认为0
						callback:function(indexArr, data){
							$('#teachingLevel".$id."').val(data[0]);
							$('#teachingLevel".$id."').blur();
							levelsum();
						}
					})</script>";

				}
			}
			?>
			<?php 
			if(isset($attend_teaching_implementation)){
				foreach ($attend_teaching_implementation as $k => $v) {	
					$score=array();				
					for($i=1;$i<=$attend_teaching_implementation[$k]['score'];$i++){
						$score[$i-1]=$i;
					}
					// $question=(new TeachingImplementation)->show($k+1);
					$question=$question=$v['content'];
					$id=$v['key_index']+1;
					$id_1=$v['key_index']+2;
					// $id=$k+3;
					// $id_1=$k+4;
					echo "<div class='margin-bottom' ><div >".$id_1.".".$question.'【'.$v['score'].'分】'."<div class='question-bottom'></div><input type='hidden' name='attend_teaching_implementation_content[".$k."]'  value='".$question."'></div><input type='text' class='input' id='teachingLevel".$id_1."'  name='teachingLevel[".$id."]' readonly placeholder='  请打分' value='".$v['get_score']."'>";
					
					if($is_add==0){
						echo "<input type='hidden' value=".end($score)." name='attend_teaching_implementation_score[".$k."]'><input type='hidden' value=".$v['key_index']." name='key_index[".$k."]'><input type='hidden' value=".$v['key_index']." name='attend_teaching_implementation_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_implementation_list_id[".$k."]'></div>";
					}else{
						echo "<input type='hidden' value=".end($score)." name='attend_teaching_implementation_score[".$k."]'><input type='hidden' value=".$v['key_index']." name='key_index[".$k."]'><input type='hidden' value=".$v['key_index']." name='attend_teaching_implementation_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_teaching_implementation_list_id[".$k."]'></div>";
					}
					$num=count($score);
					$key=$num-1;
					echo "<script>
					var num=".$num.";
					var optionlist=new Array();
					for(var i=1;i<=num;i++){
						optionlist.push(i);
					}
					new MobileSelect({
						trigger: '#teachingLevel".$id_1."',
						title: '请选择分数',
						wheels: [
						{data:optionlist}
						],
						position:[".$key."],//初始化定位 打开时默认选中的哪个 如果不填默认为0
						callback:function(indexArr, data){
							$('#teachingLevel".$id_1."').val(data[0]);
							$('#teachingLevel".$id_1."').blur();
							levelsum();
						}
					})</script>";					
				}
				
			}

			foreach ($attend_teaching_level as $k => $v) {
				echo "<input type='hidden' name='attend_teaching_level_item[".$k."]' value='".$v['item']."'>";
				echo "<input type='hidden' name='attend_teaching_level_remark[".$k."]' value='".$v['remark']."'>";
			}

			?>
		</form>
		<div class="teaching_level_sum"><?php if(isset($attend)){echo "当前总分为：".$attend['teaching_level_score'];} ?></div>
		<div>
			<input type="button" id="back_step2" class="btn btn-primary next_step" onclick="previousStep()" value="上一步">
			<input type="button" id="goto_step4" class="btn btn-primary next_step" value="下一步">		
		</div>
	</div>
	
	<div id="step4" style="display: none;">		
		<form class="role">
			<div>
				<?php 
				if(isset($attend_student_status)){
					foreach ($attend_student_status as $k => $v) {	
						$score=array();				
						for($i=1;$i<=$attend_student_status[$k]['score'];$i++){
							$score[$i-1]=$i;
						}
						// $question=(new StudentStatus)->show($k+1);
						$question=$v['content'];
						$id=$v['key_index'];
						// $id=$k+1;
						echo "<div class='margin-bottom' ><div >".$question.'【'.$v['score'].'分】'."<div class='question-bottom'></div><input type='hidden' name='attend_student_status[".$k."]'  value='".$question."'></div><input id='teachingEffect".$id."' name='teachingEffect[".$k."]'class='input' type='text' readonly placeholder='  请打分' value='".$v['get_score']."'>";
						if($is_add==0){
							echo "<input type='hidden' value=".end($score)." name='attend_student_status_score[".$k."]'><input type='hidden' value=".$id." name='attend_student_status_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_student_status_list_id[".$k."]'></div>";
						}else{
							echo "<input type='hidden' value=".end($score)." name='attend_student_status_score[".$k."]'><input type='hidden' value=".$id." name='attend_student_status_index[".$k."]'><input type='hidden' value=".$v['list_id']." name='attend_student_status_list_id[".$k."]'></div>";
						}	
						$num=count($score);
						$key=$num-1;
						echo "<script>
						var num=".$num.";
						var optionlist=new Array();
						for(var i=1;i<=num;i++){
							optionlist.push(i);
						}
						new MobileSelect({
							trigger: '#teachingEffect".$id."',
							title: '请选择分数',
							wheels: [
							{data:optionlist}
							],
							position:[".$key."],//初始化定位 打开时默认选中的哪个 如果不填默认为0
							callback:function(indexArr, data){
								$('#teachingEffect".$id."').val(data[0]);
								$('#teachingEffect".$id."').blur();
								effectsum();
							}
						})</script>";					
					}
					foreach ($attend_teaching_level as $k => $v) {
						echo "<input type='hidden' name='attend_student_status_item[".$k."]' value='".$v['item']."'>";
						echo "<input type='hidden' name='attend_student_status_remark[".$k."]' value='".$v['remark']."'>";
					}
				}
				?>	
			</div>
		</form>
		<div class="teaching_effect_sum"><?php if(isset($attend)){echo "当前总分为：".$attend['teaching_effect_score'];} ?></div>
		<div>
			<input type="button" id="back_step3" class="btn btn-primary next_step" onclick="previousStep()" value="上一步"></input>
			<input type="button" id="goto_step5" class="btn btn-primary next_step"  value="下一步"></input>		
		</div>
	</div>

	<div id="step5" style="display: none">
		<form class="role">
			<div>
				<div class='title' style="margin-left: 3%">教学准备开展情况(可选)</div>	
				<?php 
				if(isset($attend_teaching_readiness)){
					foreach ($attend_teaching_readiness as $k => $v) {			
						$item=$k+1;				
						echo "<div class='div_border1 '>				
						<div class=' tag_name   'style='width: 70px' >".$attend_teaching_readiness[$k]['item']."<input type='hidden' name='attend_teaching_readiness_content[".$k."]' value='".$attend_teaching_readiness[$k]['item']."'></div>
						<div class='tag_val 'style='margin-top:0' ><input name='attend_teaching_readiness_option[".$k."]' type='hidden' value='".$attend_teaching_readiness[$k]['option']."'>";
						$option=explode(",",$attend_teaching_readiness[$k]['option']);

						foreach ($option as $k1 => $v1) {
							if($v['check_value']==$v1){
								$checked="checked";
							}else{
								$checked="";
							}						
							echo "<div class='radio' style='margin-top:10px;margin-bottom:20px'><label ><input name='teachingReadiness[".$k."]' ".$checked." type='radio' value='".$v1."'  style='margin-left: -28px;margin-top: 2px' /><span >".$v1."</span></label></div><div class='div_float_left'></div>";
							
							
							
						}
						// exit;
						echo "</div></div>";
					}
				}
				?>
				<!-- <?php 
				if(isset($attend_teaching_readiness)){
					foreach ($attend_teaching_readiness as $k => $v) {			
						$item=$k+1;				
						echo "<div class='div_border1 div_float_left'>				
						<div class=' tag_name div_float_left 'style='width: 70px' >".$attend_teaching_readiness[$k]['item']."<input type='hidden' name='attend_teaching_readiness_content[".$k."]' value='".$attend_teaching_readiness[$k]['item']."'></div>
						<div class='div_float_left col-xs-3 tag_val'style='margin-top:0' >";
						$option=explode(",",$attend_teaching_readiness[$k]['option']);
						$select="<select name='teachingReadiness[".$k."]'><option value='-1'>请选择</option>";
						$select_option="";
						foreach ($option as $k1 => $v1) {
							$select_option.="<option value=".$v1.">".$v1."</option>";							
						}
						echo $select.$select_option."</select></div></div>";
					}
				}
				?> -->
				
			</div>
		</form>
		<input type="button" id="back_step4" class="btn btn-primary next_step"  value="上一步"></input>
		<input type="button" id="goto_step6" class="btn btn-primary next_step"  value="下一步"></input>
	</div> 

	<div id="step6" class="form-group" style="display: none;" >		
		<form action="">
			<div>
				<div class='title' style="margin-left: 3%">学生常态(可选)</div>		
				<?php 
				foreach ($attend_students_norm as $k => $v) {
					$item=$k+1;
					if($k==3){
						echo "<input type='hidden' name='attend_students_norm_item[".$k."]' value='".$v['item']."'><input type='hidden' placeholder='请输入".$v['item']."' id='studentsNorm".$item."' name='studentsNorm[".$k."]' value='";
						if($v['check_value']==null){
							echo "0'>";
						}else{
							echo $v['check_value']."'>";
						}
						continue;
					}
					echo "<div class='div_border row'>
					<div class='col-xs-3 tag_name'>".$v['item']."<input type='hidden' name='attend_students_norm_item[".$k."]' value='".$v['item']."'></div>
					<div class='col-xs-9 tag_val  ' >
					<input type='number' placeholder='请输入".$v['item']."' id='studentsNorm".$item."' name='studentsNorm[".$k."]' value='".$v['check_value']."'>
					</div>
					</div>";
				}
				?>
				<div class='title' style="margin-left: 3%">其他(必选)</div>		
				<div class="div_border1 div_float_left">
					<div class=" tag_name  div_float_left" style="margin-left:3%;">课堂设施设备完好情况</div>
					<div class=" "  style="margin-top: 40px;width: 40%;">
						<?php 					

						$item=explode(",",$attend_classroom_facilities['option']);
						
						
						foreach ($item as $k => $v) {
							$checked="";
							if($attend_classroom_facilities['check_value']==$v){
								$checked="checked";
							}
							// if($k==0){
							// 	echo "<div class='radio' style='margin-top:10px;margin-bottom:20px' >
							// 	<label style=''><input id='item13' type='radio' value='".$v."' name='classroom_facilities' style='margin-left: -28px;margin-top: 2px'".$checked.">".$v."</label>
							// 	</div>";
							// }else{
							echo "<div class='radio' style='margin-top:10px;margin-bottom:20px' >
							<label style=''><input id='item13' type='radio' value='".$v."' name='classroom_facilities' style='margin-left: -28px;margin-top: 2px'".$checked.">".$v."</label></div><div class='div_float_left'></div>";
							// }
							echo "<input type='hidden' name='attend_classroom_facilities_option' value='".$attend_classroom_facilities['option']."'>";
						}			


						?>
					</div>
				</div>
				<div class="div_border1 div_float_left">
					<div class=" tag_name   div_float_left" style="margin-left:3%;">课堂环境卫生情况
					</div>
					<div class=" " style="width: 40%;margin-top: 40px">
						<?php 
						$item=explode(",",$attend_classroom_environmental['option']);

						foreach ($item as $k => $v) {
							$checked="";
							if($attend_classroom_environmental['check_value']==$v){
								$checked="checked";
							}
							// if($k==0){
							// 	echo "<div class='radio' style='margin-top:10px;margin-bottom:20px' >
							// 	<label style=''><input id='item14' type='radio' value='".$v."' name='classroom_environmental' style='margin-left: -16px;margin-top: 2px'".$checked.">".$v."</label>
							// 	</div>";
							// }else{
							echo "<div class='radio' style='margin-top:10px;margin-bottom:20px' >
							<label style=''><input id='item14' type='radio' value='".$v."' name='classroom_environmental' style='margin-left: -28px;margin-top: 2px'".$checked.">".$v."</label>
							</div>";
							// }

						}
						echo "<input type='hidden' name='classroom_environmental_option' value='".$attend_classroom_environmental['option']."'>";
						?>
					</div>
				</div>				
				
				<div style="margin-top: 5%">
					<input type="button" id="back_step5" class="btn  btn-primary lastbtn" onclick="previousStep()" value="上一步"></input>		
					<input type="button" id="save" class="btn btn-primary lastbtn"  value="保存" ></input>
					<input type="button" id="submit" class="btn lastbtn btn-primary " value="提交" ></input>
				</div>		

			</form>

		</div>
	</div>

	

</body>

</html>